home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
bipl.zip
/
PROCS.ZIP
/
FILETEXT.ICN
< prev
next >
Wrap
Text File
|
1992-09-28
|
670b
|
31 lines
############################################################################
#
# File: filetext.icn
#
# Subject: Procedure to read text file into a list
#
# Author: Ralph E. Griswold
#
# Date: December 26, 1991
#
###########################################################################
#
# filetext(f) reads the lines of f into a list and returns that list
#
############################################################################
procedure filetext(f)
local input, file, text
input := open(f) | stop("cannot open input file")
text := []
while put(text,read(input))
close(input)
return text
end